package businessLogic;

import java.util.ArrayList;

import vo.OrderVO;
import enums.BLToViewResultMessage;
import enums.OrderState;
import businessLogicService.OrderBLService;

public class OrderController implements OrderBLService {

	@Override
	public ArrayList<OrderVO> viewOrder() {
		return new ArrayList<OrderVO>();
	}

	@Override
	public BLToViewResultMessage modifyOrder(int orderID) {
		if (orderID > 0) {
			return BLToViewResultMessage.MODIFY_ORDER_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage cancelOrder(int orderID) {
		if (orderID > 0) {
			return BLToViewResultMessage.CANCEL_ORDER_SUCCESS;
		}
		return null;
	}

	@Override
	public BLToViewResultMessage changeOrderState(int orderID, OrderState state) {
		if (orderID > 0) {
			return BLToViewResultMessage.CHANGE_ORDER_STATE_SUCCESS;
		}
		return null;
	}

	@Override
	public ArrayList<OrderVO> viewHistoryOrder() {
		return new ArrayList<OrderVO>();
	}

	@Override
	public BLToViewResultMessage deleteOrder(int orderID) {
		if (orderID > 0) {
			return BLToViewResultMessage.DELETE_ORDER_SUCCESS;
		}
		return null;
	}

}
